package com.screen.screendisplay.service.impl.dryport;

import com.screen.screendisplay.entity.dryport.DryportProdoperOwnCoal;
import com.screen.screendisplay.mapper.dryport.DryportProdoperOwnCoalMapper;
import com.screen.screendisplay.service.dryport.DryportProdoperOwnCoalService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * <p>
 * 自有煤炭完成量 服务实现类
 * </p>
 *
 * @author xuesong
 * @since 2025-08-23
 */
@Service
public class DryportProdoperOwnCoalServiceImpl extends ServiceImpl<DryportProdoperOwnCoalMapper, DryportProdoperOwnCoal> implements DryportProdoperOwnCoalService {

    @Autowired
    private DryportProdoperOwnCoalMapper ownCoalMapper;

    @Override
    public List<DryportProdoperOwnCoal> getMonthlyStatsByYear(Integer year) {
        return ownCoalMapper.getMonthlyStatsByYear(year);
    }

    @Override
    public List<DryportProdoperOwnCoal> getLatestMonthlyStats() {
        return ownCoalMapper.getLatestMonthlyStats();
    }

    @Override
    public DryportProdoperOwnCoal getStatsByYearAndMonth(Integer year, Integer month) {
        return ownCoalMapper.getStatsByYearAndMonth(year, month);
    }
}
